﻿(function() {
        CKEDITOR.plugins.add( 'autoform', {
                requires: 'dialog',
                icons: 'autoform',
                init: function( editor ) {
                        CKEDITOR.dialog.add('autoform', CKEDITOR.getUrl( this.path + 'dialogs/autoform.js' ) );
                        editor.addCommand('autoform', new CKEDITOR.dialogCommand('autoform'));
                        editor.ui.addButton('autoform', {
                                label: "自动创建表单",
                                command: 'autoform',
                                toolbar: 'insert,10'
                        });
                }
        });
})();
